All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.servlet.util.Ascii

java.lang.Object
   |
   +----sun.servlet.util.Ascii

public class Ascii
extends Object
This class implements some basic ASCII character handling functions.


Constructor Index

 o Ascii()

Method Index

 o isAlpha(int)
Returns true if the specified ASCII character is upper or lower case.
 o isDigit(int)
Returns true if the specified ASCII character is a digit.
 o isLower(int)
Returns true if the specified ASCII character is lower case.
 o isUpper(int)
Returns true if the specified ASCII character is upper case.
 o isWhite(int)
Returns true if the specified ASCII character is white space.
 o parseInt(byte[], int, int)
Parses an unsigned integer from the specified subarray of bytes.
 o toLower(int)
Returns the lower case equivalent of the specified ASCII character.
 o toUpper(int)
Returns the upper case equivalent of the specified ASCII character.

Constructors

 o Ascii
 public Ascii()

Methods

 o toUpper
 public static int toUpper(int c)
Returns the upper case equivalent of the specified ASCII character.

 o toLower
 public static int toLower(int c)
Returns the lower case equivalent of the specified ASCII character.

 o isAlpha
 public static boolean isAlpha(int c)
Returns true if the specified ASCII character is upper or lower case.

 o isUpper
 public static boolean isUpper(int c)
Returns true if the specified ASCII character is upper case.

 o isLower
 public static boolean isLower(int c)
Returns true if the specified ASCII character is lower case.

 o isWhite
 public static boolean isWhite(int c)
Returns true if the specified ASCII character is white space.

 o isDigit
 public static boolean isDigit(int c)
Returns true if the specified ASCII character is a digit.

 o parseInt
 public static int parseInt(byte b[],
                            int off,
                            int len) throws NumberFormatException
Parses an unsigned integer from the specified subarray of bytes.

Parameters:
b - the bytes to parse
off - the start offset of the bytes
len - the length of the bytes
Throws: NumberFormatException
if the integer format was invalid

All Packages  Class Hierarchy  This Package  Previous  Next  Index